import { post, get} from '../request'

// 获取借阅记录列表
export const getBorrowRecordByPage = params => {
    return post({
		url: '/borrowRecord/page',
        params,
		loading: true
    })
}
// 借阅图书
export const borrowBook = params => {
    return post({
		url: '/borrowRecord/borrow',
        params,
		loading: true
    })
}
// 归还图书
export const returnBook = params => {
    return get({
		url: '/borrowRecord/return',
        params,
		loading: true
    })
}